package com.example.day2.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    private final static Logger logger = LoggerFactory.getLogger(TestController.class);

    @RequestMapping("log")
    public String log(@RequestParam("username") String username){

        logger.info("username={}",username);
        logger.debug("我是debug");
        System.out.println("username="+username);
        return "str";
    }
}
